package com.wac.data.service;

import com.wac.data.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wac.data.entity.UserStatistical;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author beta
 * @since 2023-03-16
 */
public interface UserService extends IService<User> {

	//用户类信息
	User getUserFullInfo(String id);

	User getUserSimpleInfo(String id);

	Map<String, Object> getUserFollowList(int page, String id);

	Map<String, Object> getUserFansList(int page, String id);

	Map<String, Object> getUserFriendList(int page, String id);

	UserStatistical getUserStatisticalData(String id);

	//上传头像和背景图
	boolean updateUser(User user, List<MultipartFile> file, int where);

	//登录注册类
	String isUserLogin(String token);

	boolean loginOut(String token);

	String loginIn(String email, String password);

	boolean isFieldLegal(String field, String content);

	boolean register(User user);

	//签到
	boolean isUserCheckIn(String id);

	boolean check(String id);

	//经验增加
	boolean getExp(String id, int exp);

	//上传文件 -主要是图片 腾讯版
	// boolean upLoadFile(String id, List<MultipartFile> file, int where);

	//搜索
	Map<String, Object> search(String text, int page);

}
